package com.ytkj.digitalConstruction.enums.exception;

import com.ytkj.digitalConstruction.enums.IResultEnumRole;

public enum DingExceptionEnum implements IResultEnumRole{

	/**
	 * 新增失败
	 */
	ADD_OR_UPDATE_ERROR(-1, "向钉钉新增/修改失败"),
	/**
	 * 删除失败
	 */
	DELETE_ERROR(-2, "从钉钉删除失败"),
	RESPONSE_ERROR(-3, "钉钉返回异常");
	
	private Integer code;
	
	private String msg;
	
	DingExceptionEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	@Override
	public Integer getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}
}
